using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TheEnd_Dialog : MonoBehaviour
{
    public bool isStart;

    public EnemyStats Boss;

    private void OnTriggerEnter2D(Collider2D collision)
    {
        if (!isStart && collision.GetComponent<Player>() != null)
        {
            isStart = true;
            AudioManager.instance.StopSFX(3);
            if(Boss== null || Boss.IsDead)
                DialogManager2.instance.ExitWithoutBoss();
            else
                DialogManager2.instance.ExitWithBoss();
        }
    }
}
